package com.yida.wy.common.enums;

/**
 * 对账状态
 *
 * @author lqq
 */
public enum WyCheckAccountStatus {

	//未对账
	NOT_CHECK("0", "未对账"),
	//对账成功
	CHECK_SUCCESS("1", "对账成功"),
	//对账失败
	CHECK_FAIL("2", "对账失败");

	private final String code;
	private final String info;

	WyCheckAccountStatus(String code, String info) {
		this.code = code;
		this.info = info;
	}

	public static String getInfoByCode(String code) {
		for (WyCheckAccountStatus value : WyCheckAccountStatus.values()) {
			if(value.getCode().equals(code)){
				return value.getInfo();
			}
		}
		return null;
	}

    public String getCode() {
		return code;
	}

	public String getInfo() {
		return info;
	}
}
